﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="projectapprove.aspx.cs" Inherits="Sys_projectapprove" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>项目审批</title>
    <link rel="stylesheet" type="text/css" href="../js/themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../js/themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
	<link rel="Stylesheet" href="../js/artDialog/skin/aero.css" />
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery.easyui.min.js"></script>  
	<script type="text/javascript" src="../js/artDialog/artDialog.min.js"></script>
    <script type="text/javascript">
	function geturl(target)
	{
	var url=$(target).attr("href");
	showdialog(url);
	return false;
	}
    function showdialog(tar)
     {
         art.dialog.open
         (tar,
             {	
                     id:"showiframe1",
                     title:"项目详细信息",
                     skin:"aero"
             }
         );
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    
       <div style="background:#efefef;width:100%;">
		<a href="projectapprove.aspx" target="mainwin" class="easyui-linkbutton" plain="true">待审批项目</a>
		&nbsp;|
		<a href="projectpassed.aspx" target="mainwin" class="easyui-linkbutton" plain="true">已通过项目</a>
		&nbsp;| 
		<a href="projectdenied.aspx"  target="mainwin" class="easyui-linkbutton" plain="true">已退回项目</a>
        </div>	 
    
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
            <tr>
                <td align="center">
                <div style="background-color:#fedcbd; padding-bottom:5px;">
                    <table>
                        <tr>
                            <td>
                                学院部门：</td>
                            <td>
                                <asp:DropDownList ID="ddlDepart" runat="server" Width="150px">
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList></td>   
                             <td>
                                 申报人姓名：</td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" Width="145px"></asp:TextBox></td>   
                            <td>
                                项目名称：</td>
                            <td>
                                <asp:TextBox ID="txtTopic" runat="server" AutoPostBack="True" Width="145px"></asp:TextBox></td>    
                            <td rowspan="2">
                                <asp:ImageButton ID="btnSerch" runat="server" ImageUrl="~/Images/search.png" OnClick="btnSeach_Click" /></td>
                        </tr>
                        <tr>
                           <td>
                                项目级别：</td>
                            <td>
                                <asp:DropDownList ID="ddlLevel" runat="server" Width="150px">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem>校级</asp:ListItem>
                                    <asp:ListItem>省级</asp:ListItem>
                                    <asp:ListItem>国家级</asp:ListItem>
                                </asp:DropDownList></td>
                            <td>
                                项目编号：</td>
                            <td>
                                <asp:DropDownList ID="ddlPcode" runat="server" Width="150px">
                                </asp:DropDownList></td>
                                 <td>
                                项目类型：</td>
                            <td>
                                <asp:DropDownList ID="ddlType" runat="server" Width="150px">
                                    <asp:ListItem></asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                    </table>
                   </div> 
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Panel ID="Panel1" runat="server" Visible="False">
                        <span style="color: blue"><strong>
                        本学院允许通过的项目数为：<asp:Label ID="lblTotal" runat="server"
                            ForeColor="Red" Text="0"></asp:Label>
                            目前剩余名额为：</strong></span><strong><asp:Label ID="lblNumber" runat="server" ForeColor="Red">0</asp:Label></strong></asp:Panel>
                </td>
            </tr>
            <tr>
                <td >
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>"
                        CustomInfoSectionWidth="50%" FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页"
                        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox"
                        PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" EmptyDataText="暂时无任何数据！" Width="100%" OnRowCommand="GridView1_RowCommand">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="编号" />
                            <asp:TemplateField HeaderText="项目名称">
                                <ItemTemplate>
                                    <a href='../Popwin/projectdetails.aspx?pid=<%# Eval("id") %>' onclick="return geturl(this)"><%# Eval("pname") %></a> 
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="type" HeaderText="类型" />
                            <asp:BoundField DataField="plevel" HeaderText="级别" />
                            <asp:BoundField DataField="pcollege" HeaderText="学院部门" />
                            <asp:BoundField DataField="name" HeaderText="申报人" />
                            <asp:BoundField DataField="title" HeaderText="职称" />
                            <asp:BoundField DataField="thestatus" HeaderText="状态" />
                            <asp:TemplateField HeaderText="附件">
                                <ItemTemplate>
                                    <asp:HyperLink ID="HyperLink1" runat="server" ImageUrl="~/Images/attachment-green.png"
                                        NavigateUrl='<%# Eval("attached") %>'>附件</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="审批操作">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton2" runat="server" ToolTip="通过" ImageUrl="~/js/themes/icons/ok.png" CommandArgument='<%# Eval("id") %>' CommandName="Allow" OnClientClick="return confirm('确定通过此用户的申报项目?');"/>&nbsp; 
                                    <asp:ImageButton ID="ImageButton3" runat="server" ToolTip="退回" ImageUrl="~/js/themes/icons/undo.png" CommandArgument='<%# Eval("id") %>' CommandName="Deny" OnClientClick="return confirm('确定退回此用户的申报项目?');"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle CssClass="pgr" />
                        <AlternatingRowStyle CssClass="alt" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
         </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
